package com.future.domain.vo;

import lombok.Data;

import java.util.Date;

@Data
public class MediaResourceVO {
    private Long id;

    //主体内容
    private String title;
    private String content;
    private Long views;
    private Long likeCount;
    private Long collectionCount;
    private Integer downloadCount;

    private String fileName;
    private String filePath;
    private String fileType;

    private Date createdAt;

    //作者信息
    private Long uploaderId;
    private String uploaderIdStr;
    private String username;
    private String avatar;

    // 添加文件类型图标字段
    public String getFileIcon() {
        if (fileType == null) return "file";
        return fileType.equals("图片") ? "image" : "video";
    }
}